﻿namespace PmSoft.Logging;

using PmSoft.Repositories;
using System;

/// <summary>
/// OperationLog查询对象
/// </summary>
[Serializable]
public class SysTableLogQuery
{
    /// <summary>
    /// 搜索关键字
    /// </summary>
    public string? Keywords { get; set; }
    /// <summary>
    /// 操作类型 
    /// </summary>
    public EntityOperationType? OperationType { get; set; }
    /// <summary>
    /// 操作人
    /// </summary>
    public string? OperatorName { get; set; }
    /// <summary>
    /// 开始时间
    /// </summary>
    public DateTime? BeginTime { get; set; }
    /// <summary>
    /// 截至时间
    /// </summary>
    public DateTime? EndTime { get; set; }
    /// <summary>
    /// 操作人ID
    /// </summary>
    public long? OperatorUserId { get; set; }


    #region 查询历史操作日志参数
    /// <summary>
    /// 操作表名
    /// </summary>
    public string? TableName { get; set; }
    /// <summary>
    /// 数据库名
    /// </summary>
    public string? DatabaseName { get; set; }
    /// <summary>
    /// 对象ID 
    ///</summary>
    public string? ObjectId { get; set; }
    #endregion

}

